split LDLIBS from LDFLAGS to fix link errors in recent toolchains
authorStefano Stabellini <sstabellini@xensource.com>
Wed, 11 Aug 2010 17:02:32 +0000 (18:02 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Wed, 11 Aug 2010 17:02:32 +0000 (18:02 +0100)
commitba26a1e19798311b6b6f4add5daac46cf2d8746f
tree09faec80a07850ce4343c5416ded3f273ade720c
parent2fb2bf3c2883ba042aa220b80f659c0468a650ea
split LDLIBS from LDFLAGS to fix link errors in recent toolchains

Linker command lines are order-sensitive.
Move linker options -Lfoo -lfoo from LDFLAGS to LDLIBS and place this new
variable after the objects to link. This resolves build errors in xenpagin
and blktap with recent toolchains.

rename SHLIB_CFLAGS to SHLIB_LDFLAGS
rename LDFLAGS_* to LDLIBS_*
move LDFLAGS usage after CFLAGS in CC calls
remove stale comments in xenpaging Makefile

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
31 files changed:
config/StdGNU.mk
config/SunOS.mk
tools/Rules.mk
tools/blktap/drivers/Makefile
tools/blktap/lib/Makefile
tools/blktap2/Makefile
tools/blktap2/drivers/Makefile
tools/blktap2/vhd/Makefile
tools/blktap2/vhd/lib/Makefile
tools/console/Makefile
tools/debugger/xenitp/Makefile
tools/flask/libflask/Makefile
tools/flask/utils/Makefile
tools/fs-back/Makefile
tools/libfsimage/Rules.mk
tools/libfsimage/common/Makefile
tools/libxc/Makefile
tools/libxen/Makefile
tools/libxen/Makefile.dist
tools/libxl/Makefile
tools/misc/Makefile
tools/security/Makefile
tools/vnet/libxutil/Makefile
tools/xcutils/Makefile
tools/xenbackendd/Makefile
tools/xenmon/Makefile
tools/xenpaging/Makefile
tools/xenpmd/Makefile
tools/xenstat/libxenstat/Makefile
tools/xenstore/Makefile
tools/xentrace/Makefile